package server

import "sync/atomic"

// UserCountAdd 用户数 +1
func (s *server) UserCountAdd() {
	atomic.AddInt32(s.UserCount, 1)
}

// UserCountCut 用户数 -1
func (s *server) UserCountCut() {
	atomic.AddInt32(s.UserCount, -1)
}

// FemaleCountAdd 女生数量 +1
func (s *server) FemaleCountAdd() {
	atomic.AddInt32(s.FemaleCount, 1)
}

// FemaleCountAdd 女生数量 -1
func (s *server) FemaleCountCut() {
	atomic.AddInt32(s.FemaleCount, -1)
}

// MaleCountAdd 男生数量 +1
func (s *server) MaleCountAdd() {
	atomic.AddInt32(s.MaleCount, 1)
}

// MaleCountCut 男生数量 -1
func (s *server) MaleCountCut() {
	atomic.AddInt32(s.MaleCount, -1)
}
